﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SISLOG.BusinessEntities;
using SISLOG.DataAccess;
using Microsoft.Practices.Unity;

namespace SISLOG.BusinessLogic
{
    public class MaterialBL: IMaterialBL
    {
        [Dependency]
        public IMaterialDAO MaterialDAO { get; set; }

        public List<Material> GetAllFromMaterial()
        {
            return MaterialDAO.GetAllFromMaterial();
        }

        public List<Material> GetAllFromMaterialByCriterio(string criterio)
        {
            return MaterialDAO.GetAllFromMaterialByCriterio(criterio);
        }
    }
}
